﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="ArchiveCodeRangePrintView.aspx.cs" Inherits="Web.Views.DataManage.ArchiveCodeRangePrintView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
    <style type="text/css">
        .rangeDiv
        {
            border: 1px solid #ccd;
            height: 60px;
            width: 580px;
            margin: 4px auto;
            text-align: center;
            vertical-align:middle;
            padding-top:20px;
        }
        
        .rangeDiv span
        {
            margin-left:20px;
            }
            
        .toolDiv
        {
            text-align:center;
            vertical-align:middle;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="rangeDiv">
        <span>起始档号：</span> <span>
            <input runat="Server" id="txtStartCode" />
        </span><span>结束档号：</span> <span>
            <input runat="Server" id="txtEndCode" />
        </span>
    </div>
    <div class="toolDiv">
        <button type="button" class="sexybutton" id="btnExecuteStatitics" runat="server"
            onserverclick="btnExecuteStatitics_Click">
            <span><span><span class="disk">确定打印</span></span></span></button>
        <button type="button" class="sexybutton" id="btnCancel" >
            <span><span><span class="cancel">取消</span></span></span></button>
    </div>
    <script type="text/javascript">


        $(function () {

            $("#ctl00_ContentPlaceHolder1_btnExecuteStatitics").click(function () {

                var startCode = $.trim($("#ctl00_ContentPlaceHolder1_txtStartCode").val());
                var endCode = $.trim($("#ctl00_ContentPlaceHolder1_txtEndCode").val());
                if (startCode == "") {
                    alert("起始档号不能为空！");
                    return false;
                }
                if (endCode == "") {
                    alert("截止档号不能为空！");
                    return false;
                }
                return true;
            });

            $("#btnCancel").click(function () {
                window.close();
            });
        });
    </script>
</asp:Content>
